/**
 * Created with JetBrains WebStorm.
 * User: Administrator
 * Date: 13-6-5
 * Time: 下午2:16
 * To change this template use File | Settings | File Templates.
 */

Ext.define('cloud.view.call.callAdd', {
    extend: 'Ext.form.FormPanel',
    xtype: 'calladd',

    requires: ['Ext.form.Panel', 'Ext.form.FieldSet','Ext.field.Toggle','Ext.field.Select','Ext.ux.Fileup', 'Ext.Img'],
    config: {
        title: '添加呼叫信息',
        items: [
            {
                xtype: 'toolbar',
                docked: 'bottom',
                layout: {
                    type: 'hbox',
                    pack: 'end'
                },
                items: [
                    {
                        id: 'call_submit',
                        iconMask: true,
                        scope: this,
                        text: '提交',
                        style: 'float:right',
                        cls:'x-button2'
                    }
                ]
            },
            {
                xtype: 'fieldset',
               // id :'fieldset',
                //title: '添加产品',
                defaults: {
                    labelwidth: '20%',
                    xtype: 'textfield',
                    required: true,
                    clearIcon: true
                },
                items: [
                {
                    id: 'calladd_name',
                    name: 'name',
                    label: '名称',
                    maxLength: 50,
                    placeHolder: '请输名称'
                }, {
                    id: 'calladd_tel',
                    name: 'number',
                    label: '电话',
                    maxLength: 50,
                    placeHolder: '电话'
                },{
                    id: 'calladd_address',
                    name: 'explain',
                    label: '说明',
                    maxLength: 50,
                    placeHolder: '说明'
                }

            ]

            }
        ]
    }
});